package org.ChrisRiffle.Acme.BoundingBox.model;


/**
 * DataPoint
 * 
 * @author RIF
 * 
 */
public class DataPoint {

        
    private float x;

    private float y;

    private float value;

        
	/**
	 * Constructor
	 * 
	 * @param pX
	 * @param pY
	 * @param pValue
	 * @param pComparisonType
	 */
	public DataPoint(float pX, float pY, float pValue) {

		x = pX;
		y = pY;
		value = pValue;
	}
    
  
    
    
	@Override
	public String toString() {

		return x + "," + y + "," + value;
	}

    
    
    
	@Override
	public boolean equals(Object obj) {

		boolean rIsEqual = false;

		if (this == obj) {

			rIsEqual = true;

		} else if (obj instanceof DataPoint) {

			DataPoint pDataPoint = (DataPoint) obj;

			rIsEqual = (x == pDataPoint.x) && (y == pDataPoint.y)
					&& (value == pDataPoint.value);
		}

		return rIsEqual;
	}




	/**
	 * @return the x
	 */
	public float getX() {
		return x;
	}




	/**
	 * @return the y
	 */
	public float getY() {
		return y;
	}




	/**
	 * @return the value
	 */
	public float getValue() {
		return value;
	}

    
}


